package com.example.sens.mapper;

import com.baomidou.mybatisplus.plugins.Page;
import com.example.sens.entity.UserQuiz;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface UserQuizMapper {
    int deleteByPrimaryKey(Long id);

    int insert(UserQuiz record);

    int insertSelective(UserQuiz record);

    UserQuiz selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(UserQuiz record);

    int updateByPrimaryKey(UserQuiz record);

    List<UserQuiz> findAll(Page page, @Param("userId") Long userId, @Param("quizId") Long quizId);

    List<UserQuiz> findAllCustom(Page page);

    List<UserQuiz> findByUserId(Long userId);

    List<UserQuiz> selectAll();
}